<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head id="Head1"><title>
	访问记录管理
</title><link href="../Styles/css.css" rel="stylesheet" type="text/css" /><link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="../Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="../Scripts/EmployeesManager.js" type="text/javascript"></script>
    <!--<script src="Scripts/EmployeesManager.js?0d189a86cc764626a482e60e084441dd" type="text/javascript"></script>-->
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
   <!--  <form method="post" action="EmployeesManager.htm" id="form1"> -->


<script type="text/javascript"> 
//<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
//]]>
    function openWin() {
        showModalDialog("Wd_EmployeesUpdateManager.jsp", "example04", "dialogWidth:850px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
    }
   
</script>
 
<form action="WdReceptionAdd.do" method="post">
    <div style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
        <div id="tree" class="tree" style="background: #EFF3FF;">
        </div>
    </div>
    <div style="width: 75%; float: left; border: 0px solid #82AFE8">
    	<h2>添加访问信息</h2>
        <table width="100%">
            <tr>
                <td width="6%">
                    客户姓名：
                </td>
                <td width="13%">
                <select name="customerName">
                	<c:forEach items="${WdCustomerList }" var="cus">
                		<option value="${cus.customerName }">${cus.customerName }</option>
                	</c:forEach>
                </select>
                </td>
                <td width="7%">
                    接待方式：
                </td>
                <td width="13%">
                   	 来访<input name="receptionMode" type="radio" id="receptionMode"  value="来访" checked="checked"/>
                   	 来电<input name="receptionMode" type="radio" id="receptionMode"  value="来电"/>
                </td>
            </tr>
            <tr>
                <td width="7%">
                    业务员编号：
                </td>
                <td width="13%">
                    <input name="number" type="text" id="number" style="width:95%;" />
                </td>
            
            
           
                <td width="6%">
                    业务员姓名：
                </td>
                <td width="13%">
                    <input name="userName" type="text" id="userName" style="width:95%;" />
                </td>
                </tr>
                <tr>
                <td width="7%">
                    接待内容：
                </td>
                <td width="13%"  colspan="2">
                   	 <input name="receptionContent" type="text" id="receptionContent" />
                </td>
                <td>
                	<input type="submit" value="添加" />
                </td>
               </tr>
        </table>
        
        <h2><a href="/wanda/reception/WdReceptionList.do">查看接待记录列表</a></h2>
        
</form>

        
            <script type="text/javascript">
<!--
                var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                function pageLoad() {
                    for (i = 1; i < Ptr.length + 1; i++) {
                        Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                    }
                }
                window.onload = pageLoad;
                for (var i = 0; i < Ptr.length; i++) {
                    Ptr[i].onmouseover = function () {
                        this.tmpClass = this.className;
                        this.className = "t3";

                    };
                    Ptr[i].onmouseout = function () {
                        this.className = this.tmpClass;
                    };
                }
//-->
            </script>
            
            
            <script>
             //删除
                function del(customerId){
			  		if(confirm('是否删除？')){
			  			location.href="delete_customer.do?customerId="+customerId;
			  		}
			  	}
            </script>
             <div style="width: 100%;">
            
 
        </div>
        </div>
       
    </div>
   
    </form>
</body>
</html>
